package com.xl.yygh.user.client;

import com.xl.yygh.model.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author XiangLiang
 * @date 2023/11/10 15:59
 * @description
 */
@FeignClient(value = "service-user")
@Repository
public interface PatientFeignClient {

    @ApiOperation(value = "获取就诊人信息")
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@ApiParam(name = "id", value = "就诊人id", required = true) @PathVariable("id") Long id);

}
